package com.jiyun.h2303b.controller;

import com.jiyun.h2303b.service.TbStorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("storage")
public class StorageController {

    @Autowired
    private TbStorageService accountService;

    @RequestMapping("deduct")
    public void deduct(String commodityCode, int count){
        accountService.deduct(commodityCode,count);
    }
}
